//
//  HMDownloadIMGOperation.h
//  自定义Operation
//
//  Created by teacher on 16/10/11.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/*
 1.集成
 2.
 */
@interface HMDownloadIMGOperation : NSOperation

//图片的下载地址
@property(nonatomic,copy) NSString *urlString;

//定义block代码块用于传递数据
@property(nonatomic,copy) void(^completeBlock)(UIImage *image);

+(instancetype)operationWithURLString:(NSString *)urlString complete:(void(^)(UIImage *image))completeBlock;
@end
